using System;

namespace Brilliance
{
    public class GenericEventArgs<T> : EventArgs
    {
        private readonly T result;
        private readonly string resultName;

        public GenericEventArgs(INavigateAction result)
        {
            this.result = (T) result;
        }

        public GenericEventArgs(string resultName)
        {
            this.resultName = resultName;
        }

        public string ResultName
        {
            get { return resultName; }
        }

        public T Result
        {
            get { return result; }
        }
    }
}